Optimal. Leaf size=243 \[ -\frac {c (b c-2 a d) x \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac {(b c-2 a d) x^3 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac {c^2 (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 243, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 37, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.162, Rules used = {1264, 470, 285,
327, 223, 212} \begin {gather*} \frac {c^2 \sqrt {a^2+2 a b x^2+b^2 x^4} (b c-2 a d) \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )}-\frac {c x \sqrt {a^2+2 a b x^2+b^2 x^4} \sqrt {c+d x^2} (b c-2 a d)}{16 d^2 \left (a+b x^2\right )}+\frac {b x^3 \sqrt {a^2+2 a b x^2+b^2 x^4} \left (c+d x^2\right )^{3/2}}{6 d \left (a+b x^2\right )}-\frac {x^3 \sqrt {a^2+2 a b x^2+b^2 x^4} \sqrt {c+d x^2} (b c-2 a d)}{8 d \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 285
Rule 327
Rule 470
Rule 1264
Rubi steps
\begin {align*} \int x^2 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4} \, dx &=\frac {\sqrt {a^2+2 a b x^2+b^2 x^4} \int x^2 \left (a b+b^2 x^2\right ) \sqrt {c+d x^2} \, dx}{a b+b^2 x^2}\\ &=\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}-\frac {\left (b (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int x^2 \sqrt {c+d x^2} \, dx}{2 d \left (a b+b^2 x^2\right )}\\ &=-\frac {(b c-2 a d) x^3 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}-\frac {\left (b c (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {x^2}{\sqrt {c+d x^2}} \, dx}{8 d \left (a b+b^2 x^2\right )}\\ &=-\frac {c (b c-2 a d) x \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac {(b c-2 a d) x^3 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac {\left (b c^2 (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \int \frac {1}{\sqrt {c+d x^2}} \, dx}{16 d^2 \left (a b+b^2 x^2\right )}\\ &=-\frac {c (b c-2 a d) x \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac {(b c-2 a d) x^3 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac {\left (b c^2 (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4}\right ) \text {Subst}\left (\int \frac {1}{1-d x^2} \, dx,x,\frac {x}{\sqrt {c+d x^2}}\right )}{16 d^2 \left (a b+b^2 x^2\right )}\\ &=-\frac {c (b c-2 a d) x \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac {(b c-2 a d) x^3 \sqrt {c+d x^2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac {b x^3 \left (c+d x^2\right )^{3/2} \sqrt {a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac {c^2 (b c-2 a d) \sqrt {a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 120, normalized size = 0.49 \begin {gather*} \frac {\sqrt {\left (a+b x^2\right )^2} \left (\sqrt {d} x \sqrt {c+d x^2} \left (6 a d \left (c+2 d x^2\right )+b \left (-3 c^2+2 c d x^2+8 d^2 x^4\right )\right )-3 c^2 (b c-2 a d) \log \left (-\sqrt {d} x+\sqrt {c+d x^2}\right )\right )}{48 d^{5/2} \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 159, normalized size = 0.65
method | result | size |
risch | \(\frac {x \left (8 b \,x^{4} d^{2}+12 a \,d^{2} x^{2}+2 b c d \,x^{2}+6 a c d -3 b \,c^{2}\right ) \sqrt {d \,x^{2}+c}\, \sqrt {\left (b \,x^{2}+a \right )^{2}}}{48 d^{2} \left (b \,x^{2}+a \right )}+\frac {\left (-\frac {c^{2} a \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right )}{8 d^{\frac {3}{2}}}+\frac {c^{3} \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right ) b}{16 d^{\frac {5}{2}}}\right ) \sqrt {\left (b \,x^{2}+a \right )^{2}}}{b \,x^{2}+a}\) | \(147\) |
default | \(\frac {\sqrt {\left (b \,x^{2}+a \right )^{2}}\, \left (8 \left (d \,x^{2}+c \right )^{\frac {3}{2}} d^{\frac {3}{2}} b \,x^{3}+12 \left (d \,x^{2}+c \right )^{\frac {3}{2}} d^{\frac {3}{2}} a x -6 \left (d \,x^{2}+c \right )^{\frac {3}{2}} \sqrt {d}\, b c x -6 \sqrt {d \,x^{2}+c}\, d^{\frac {3}{2}} a c x +3 \sqrt {d \,x^{2}+c}\, \sqrt {d}\, b \,c^{2} x -6 \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right ) a \,c^{2} d +3 \ln \left (\sqrt {d}\, x +\sqrt {d \,x^{2}+c}\right ) b \,c^{3}\right )}{48 \left (b \,x^{2}+a \right ) d^{\frac {5}{2}}}\) | \(159\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 124, normalized size = 0.51 \begin {gather*} \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} b x^{3}}{6 \, d} - \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} b c x}{8 \, d^{2}} + \frac {\sqrt {d x^{2} + c} b c^{2} x}{16 \, d^{2}} + \frac {{\left (d x^{2} + c\right )}^{\frac {3}{2}} a x}{4 \, d} - \frac {\sqrt {d x^{2} + c} a c x}{8 \, d} + \frac {b c^{3} \operatorname {arsinh}\left (\frac {d x}{\sqrt {c d}}\right )}{16 \, d^{\frac {5}{2}}} - \frac {a c^{2} \operatorname {arsinh}\left (\frac {d x}{\sqrt {c d}}\right )}{8 \, d^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 206, normalized size = 0.85 \begin {gather*} \left [-\frac {3 \, {\left (b c^{3} - 2 \, a c^{2} d\right )} \sqrt {d} \log \left (-2 \, d x^{2} + 2 \, \sqrt {d x^{2} + c} \sqrt {d} x - c\right ) - 2 \, {\left (8 \, b d^{3} x^{5} + 2 \, {\left (b c d^{2} + 6 \, a d^{3}\right )} x^{3} - 3 \, {\left (b c^{2} d - 2 \, a c d^{2}\right )} x\right )} \sqrt {d x^{2} + c}}{96 \, d^{3}}, -\frac {3 \, {\left (b c^{3} - 2 \, a c^{2} d\right )} \sqrt {-d} \arctan \left (\frac {\sqrt {-d} x}{\sqrt {d x^{2} + c}}\right ) - {\left (8 \, b d^{3} x^{5} + 2 \, {\left (b c d^{2} + 6 \, a d^{3}\right )} x^{3} - 3 \, {\left (b c^{2} d - 2 \, a c d^{2}\right )} x\right )} \sqrt {d x^{2} + c}}{48 \, d^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{2} \sqrt {c + d x^{2}} \sqrt {\left (a + b x^{2}\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.42, size = 156, normalized size = 0.64 \begin {gather*} \frac {1}{48} \, {\left (2 \, {\left (4 \, b x^{2} \mathrm {sgn}\left (b x^{2} + a\right ) + \frac {b c d^{3} \mathrm {sgn}\left (b x^{2} + a\right ) + 6 \, a d^{4} \mathrm {sgn}\left (b x^{2} + a\right )}{d^{4}}\right )} x^{2} - \frac {3 \, {\left (b c^{2} d^{2} \mathrm {sgn}\left (b x^{2} + a\right ) - 2 \, a c d^{3} \mathrm {sgn}\left (b x^{2} + a\right )\right )}}{d^{4}}\right )} \sqrt {d x^{2} + c} x - \frac {{\left (b c^{3} \mathrm {sgn}\left (b x^{2} + a\right ) - 2 \, a c^{2} d \mathrm {sgn}\left (b x^{2} + a\right )\right )} \log \left ({\left | -\sqrt {d} x + \sqrt {d x^{2} + c} \right |}\right )}{16 \, d^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int x^2\,\sqrt {d\,x^2+c}\,\sqrt {{\left (b\,x^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________